import { post, get } from './http'

// 登录请求
export let reqLogin = (params) => post('api/login', params)
// 注册请求
export let reqRegister = (params) => post('/api/register',params)
// 新人专享请求
export let reqNewBanner = (params) => get('/api/getnew',params)
// 万人团的请求
export let reqGroup = (params) => get('/api/getgroupon',params)
// 秒杀
export let reqSeckil = (params) => get('/api/getseckill',params)
// 首页商品分类
export let reqAllGoods = (params) => get('/api/getindexgoods',params)

// 分类请求
export let reqCate = (params) => get('/api/getcate',params)
// 分类商品
export let reqCateGoods = (params) => get('/api/getgoods',params)

//商品详情
export let reqDetail = (params) => get('/api/getgoodsinfo',params)


// 加入购物车
export let reqAddShop = (params) => post("/api/cartadd", params)
// 购物车列表
export let reqAddList = (params) => get("/api/cartlist", params)
// 购物车删除
export let reqShopDel = (params) => post("/api/cartdelete", params)
// 购物车修改
export let reqShopedit = (params) => post("/api/cartedit", params)

// 轮播图请求
export let reqBanner = (params) => get("/api/getbanner", params)

// 优惠券
export let reqCoupon = (params) => get("/api/getcoupon", params)
